package cn.iocoder.yudao.module.system.controller.admin.a_quest.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Size;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 待办 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class QuestBaseVO {

    @Schema(description = "待办名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "待办名称")
    @Size(max = 50, message = "待办名称长度不能超过50个字符")
    private String questname;

    @Schema(description = "待办备注", example = "备注")
    @Size(max = 500, message = "待办备注长度不能超过500个字符")
    private String remark;

    @Schema(description = "待办类型", example = "2")
    private Integer questtype;

    @Schema(description = "待办所属人", example = "2")
    private String transactor;

    @Schema(description = "关联id")
    private String relevanceid;

    @Schema(description = "待办状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotNull(message = "创建时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private String createtime;

    @Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotNull(message = "创建时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    private String endtime;

    @Schema(description = "ERPID", example = "123456")
    private String erpid;

    @Schema(description = "父ID")
    private Integer pid;

}
